package net.qiqb.core.domain.annotation;

public class AttachedAggregatePersistentObj<AR, D> {

    private final AR aggregateRoot;

    private final D domainObj;


    public AttachedAggregatePersistentObj(AR aggregateRoot, D domainObj) {
        this.aggregateRoot = aggregateRoot;
        this.domainObj = domainObj;
    }

    public D getDomainObj() {
        return domainObj;
    }

    public AR getAggregateRoot() {
        return aggregateRoot;
    }
}
